function json2str(o) {
    var arr = [];
    var fmt = function (s) {
        if (typeof s == 'object' && s != null) return json2str(s);
        return /^(string|number)$/.test(typeof s) ? "'" + s + "'" : s;
    }
    for (var i in o) arr.push("'" + i + "':" + fmt(o[i]));
    return '{\n' + arr.join(',\n') + '\n}';
}
function setHtml(url, post) {
    document.all.pinput.innerHTML = "<pre>" + url + "\n" + json2str(post) + "</pre>"
    $.post(url, post,
        function (data, status) {
            document.all.poutput.innerHTML = data;
        });
}

function json2str_zhm(o) {
    var arr = [];
    var fmt = function (s) {
        if (typeof s == 'object' && s != null) return json2str(s);
        return /^(string|number)$/.test(typeof s) ? "'" + s + "'" : s;
    }
    for (var i in o) arr.push("'" + i + "':" + fmt(o[i]['val']) + ",//" + fmt(o[i]['msg']));
    return '{\n' + arr.join('\n') + '\n}';
}
function form_zhm(url, o) {
    var arr = [];
    var fmt = function (s) {
        if (typeof s == 'object' && s != null) return json2str(s);
        return /^(string|number)$/.test(typeof s) ? "'" + s + "'" : s;
    };

    for (var i in o) {
        if (o[i]['disabled'] == 1) {
            arr.push(fmt(o[i]['msg']) + '(' + i + '):<br/><input type="text" name="' + i + '" value="' + o[i]['val'] + '"/>');
        } else if (o[i]['disabled'] == 0) {
            arr.push(fmt(o[i]['msg']) + '(' + i + '):<br/><input type="text" name="' + i + '" value="' + o[i]['val'] + '" readonly=""/>');
        } else if (o[i].hasOwnProperty('file')) {
            arr.push(fmt(o[i]['msg']) + '(' + i + '):<br/><input type="file" name="' + i + '" value="' + o[i]['val'] + '" />');
        }
    }
    div_form = '<button type="button" onclick="submit_zhm(\'' + url + '\')">提交</button>';
    form_show = '<form id="form_post" enctype="multipart/form-data" action="#" method="post">' + arr.join('<br/>') + '<br/>' + div_form + '</form>';
    return form_show;
}
function setHtml_zhm(url, post, show, ret) {
    div_form = "<br/>测试:<br/>" + form_zhm(url, show) + "<br/>";
    //url="http://123.59.185.66:8003"+url;
    url = url;
    div_show = "<pre>实例:<br/>" + url + "\n" + json2str_zhm(show) + "</pre>";
    div_ret = ""
    if (ret) {
        div_ret = "<pre>返回结果:<br/>" + json2str_zhm(ret) + "</pre>";
    }
    document.all.pinput.innerHTML = div_show + div_form + div_ret;
}
function submit_zhm(url) {
    var formData = new FormData($('#form_post')[0]);
    $.ajax({
        url: url,
        type: 'POST',
        data: formData,
        async: false,
        cache: false,
        contentType: false,
        processData: false,
        success: function (returndata) {
            document.all.poutput.innerHTML = "结果:<br/>" + returndata;
        },
        error: function (returndata) {
            alert(returndata);
        }
    });
}

//短信验证码
function sendsms() {
    url = '/util/sendsms/';
    show = {
        "tel_number": {"val": "18333645367", "msg": "手机号", "disabled": 1}
    };
    post = {
        "tel_number": "18333645367"
    };
    setHtml_zhm(url, post, show);
}

//用户注册
function user_regist() {
    url = '/api/regist/';
    show = {
        "tel_number": {"val": "18333645367", "msg": "手机号", "disabled": 1},
        "cpwd": {"val": "123456", "msg": "密码", "disabled": 1},
        "identity_code": {"val": "123456", "msg": "验证码", "disabled": 1},
    };
    post = {
        "tel_number": "18333645367",
        "cpwd": "123456",
        "identity_code": "123456"
    };
    setHtml_zhm(url, post, show);
}
//用户登录
function user_login() {
    url = '/api/login/';
    show = {
        "tel_number": {"val": "18333645367", "msg": "手机号", "disabled": 1},
        "cpwd": {"val": "123456", "msg": "密码", "disabled": 1},
        "ctype": {"val": "0", "msg": "类型('0:普通注册用户', '1:qq用户', '2:微信用户'),不可更改", "disabled": 0}
    };
    post = {
        "tel_number": "18333645367",
        "cpwd": "123456",
        "ctype": "0"//类型:0 普通登陆,1第三方登陆
    }
    setHtml_zhm(url, post, show);
}
//用户登录
function user_login3() {
    url = '/api/login/';
    show = {
        "cname": {"val": "k4hfejkrf24g3hui3oqd", "msg": "用户名", "disabled": 1},
        "cpwd": {"val": "123456", "msg": "密码", "disabled": 1},
        "ctype": {"val": "1", "msg": "类型('0:普通注册用户', '1:qq用户', '2:微信用户'),不可更改", "disabled": 1},
        "nickname": {"val": "k4hfejkrf24g3hui3oqd", "msg": "昵称", "disabled": 1},
        "gender": {"val": "1", "msg": "性别('0:男', '1:女','2:未知')", "disabled": 1},
        "img": {"val": "", "msg": "头像(**上传图片必须在设置form属性'enctype=\"multipart/form-data\"')", "disabled": 2, 'file': 1}
    };
    post = {
        "cname": "k4hfejkrf24g3hui3oqd",
        "cpwd": "123456",
        "ctype": "1",
        "nickname": "k4hfejkrf24g3hui3oqd",
        "gender": "1",
        "img": ""
    };
    setHtml_zhm(url, post, show);
}
//用户修改密码
function user_changepwd() {
    url = '/user/changepwd/';
    post = {
        "id_user": "2",
        "old_pwd": "123456",
        "new_pwd": "317419",
    };
    show = {
        "id_user": {"val": "2", "msg": "用户id", "disabled": 1},
        "old_pwd": {"val": "123456", "msg": "旧密码", "disabled": 1},
        "new_pwd": {"val": "317419", "msg": "新密码", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}
//用户找回密码
function user_forgetregist() {
    url = '/user/forgetregist/';
    show = {
        "tel_number": {"val": "18333645367", "msg": "手机号", "disabled": 1},
        "new_pwd": {"val": "123456", "msg": "新密码", "disabled": 1},
        "identity_code": {"val": "123456", "msg": "验证码", "disabled": 1},
    };
    post = {
        "tel_number": "18333645367",
        "new_pwd": "123456",
        "identity_code": "123456"
    };
    setHtml_zhm(url, post, show);
}

//用户找回密码
function user_basicInfo() {
    url = '/user/basicInfo/';
    post = {
        "id_user": "2",
    };
    show = {
        "id_user": {"val": "2", "msg": "用户id", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}

//获取用户统计信息
function user_counter() {
    url = '/user/counter/';
    post = {
        "id_user": "2",
    };
    ret = {
        "msg": {"val": "返回成功", "msg": "返回信息"},
        "code": {"val": "200", "msg": "返回码"}
    };
    show = {
        "id_user": {"val": "2", "msg": "用户id", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}


//获取该用户关注的用户列表
function user_payattention_list() {
    url = '/user/payattention_list/';
    post = {
        "id_user": "2",
        'id_my':'1'
    };
    show = {
        "id_user": {"val": "2", "msg": "用户id", "disabled": 1},
        "id_my": {"val": "1", "msg": "我的id", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}

//获取关注该用户的粉丝列表
function user_fans_list() {
    url = '/user/fans_list/';
    post = {
        'id_my':'1',
        "id_user": "2"
    };
    show = {
        "id_user": {"val": "2", "msg": "用户id", "disabled": 1},
        'id_my':{"val": "1", "msg": "我的id", "disabled": 1}
    };
    setHtml_zhm(url, post, show);
}


//视频列表
function user_videolist() {
    url = '/user/videolist/';
    post = {
        "id_user": "7",
        "cur_page": "0",
        "pagesize": "5"
    };
    show = {
        "id_user": {"val": "7", "msg": "用户id", "disabled": 1},
        "cur_page": {"val": "0", "msg": "页码", "disabled": 1},
        "pagesize": {"val": "5", "msg": "每页条数", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}
//获取关注该用户的粉丝列表
function user_payattention_actor_video_list() {
    url = '/user/payattention_actor_video_list/';
    post = {
        "id_user": "1",
        "cur_page": "0",
        "pagesize": "5"
    };
    show = {
        "id_user": {"val": "1", "msg": "用户id", "disabled": 1},
        "cur_page": {"val": "0", "msg": "页码", "disabled": 1},
        "pagesize": {"val": "5", "msg": "每页条数", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}
//获取该用户的消费日志
function user_log_pay() {
    url = '/user/log_pay/';
    post = {
        "id_user": "1",
        "cur_page": "0",
        "pagesize": "5"
    };
    show = {
        "id_user": {"val": "1", "msg": "用户id", "disabled": 1},
        "cur_page": {"val": "0", "msg": "页码", "disabled": 1},
        "pagesize": {"val": "5", "msg": "每页条数", "disabled": 1},
    };
    setHtml_zhm(url, post, show);
}

//创建直播间
function start() {
    url = '/room/start/';
    post = {
        "name": "直播间名字",
        "actorid": "72",
        "live_picurl": "",
        "cdes": "直播间简介",
        "ctype": "0",//0直播中
        "privateflag": "0",
        "roompay": "100",
        "roompwd": "123456",
        "payforchat": "150",
        "privatechat": "1111",
        "location": "火星",
        "orientation":"1"
    }
    setHtml(url, post);
}

//关闭直播间
function end() {
    url = '/room/17/end/';
    post = {}
    setHtml(url, post);
}
//直播间心跳
function beatheart() {
    url = '/room/22482147/beatheart/';
    post = {}
    setHtml(url, post);
}
//用户进入直播间
function room_in() {
    url = '/room/22482147/in_out/';
    post = {
        "id_user": 12,
        "ctype": 0,//0进入,1退出
    }
    setHtml(url, post);
}

//用户退出直播间
function room_out() {
    url = '/room/22482147/in_out/';
    post = {
        "id_user": 12,
        "ctype": 1,//0进入,1退出
    }
    setHtml(url, post);
}
//房间用户列表
function room_users() {
    url = '/room/22299400/users/';
    post = {}
    setHtml(url, post);
}

//获取直播间信息
function room() {
    url = '/room/22482147/';
    post = {}
    setHtml(url, post);
}

//热门列表
function hotlist() {
    url = '/api/hotlist/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}

//获取最新列表
function lastestlist() {
    url = '/api/lastestlist/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}


//获取频道列表
function channellist() {
    url = '/channel/list/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}


//
function gift_list() {
    url = '/gift/list/';
    post = {}
    setHtml(url, post);
}

//获取频道列表
function channel_info() {
    url = '/channel/4/video/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}

//获取频道列表
function zone() {
    url = '/api/zone/2/';
    post = {}
    setHtml(url, post);
}


//获取主播热度排行
function rank_actor_hot() {
    url = '/api/rank_actor_hot/';
    post = {
        "id_user": "1",
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}


//获取主播人气排行
function rank_actor_fans() {
    url = '/api/rank_actor_fans/';
    post = {
        "id_user": "1",
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}

//获取直播热度排行
function rank_room() {
    url = '/api/rank_room/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}

//获取热门搜索关键字
function keywords() {
    url = '/api/keywords/';
    post = {}
    setHtml(url, post);
}

//搜索内容
function mysearch() {
    url = '/api/search/';
    post = {
        "id_user": "1",
        "words": "1",
    }
    setHtml(url, post);
}


//搜索内容
function rank_spend() {
    url = '/api/rank_spend/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
        "id_actor":"5",
        "id_my":"52",
    }
    setHtml(url, post);
}

//
function uploadimage() {
    url = '/util/uploadimage/';
    show = {
        "ctype": {"val": "0", "msg": "类型('0:用户头像', '1:主播封面图', '2:主播身份证照片','3:视频封面图)", "disabled": 1},
        "img": {"val": "", "msg": "头像(**上传图片必须在设置form属性'enctype=\"multipart/form-data\"')", "disabled": 2, 'file': 1}
    };
    post = {
        "ctype": "0",
        "img": ""
    };
    setHtml_zhm(url, post, show);
}
function page() {
    url = '/api/page/';
    post = {}
    show = {};
    ret = {
        "ctype": {"val": "0", "msg": "类型('0:轮播图', '1:频道', '2:专题')"},
        "id_zone": {"val": "1", "msg": "推荐位相关id"}
    };
    setHtml_zhm(url, post, show, ret);
}

function glist() {
    url = '/glist/list/';
    post = {}
    setHtml(url, post);
}

function glist_info() {
    url = '/glist/1/';
    post = {}
    setHtml(url, post);
}

function glist_item() {
    url = '/glist/item/';
    post = {
         "cur_page": "0",
        "pagesize": "5",
        "id":"1"
    }
    setHtml(url, post);
}

function user_payattention() {
    url = '/user/1/payattention/';
    post = {
        "ctype": "0",
        "id_user": "2"
    };
    setHtml(url, post);
}

function user_no_payattention() {
    url = '/user/1/payattention/';
    post = {
        "ctype": "1",
        "id_user": "2"
    };
    setHtml(url, post);
}

function user_praise() {
    url = '/user/1/praise/';
    post = {
        "room_num": "22631481",
        "id_actor": "52"
    };
    show = {
        "room_num": {"val": "22631481", "msg": "房间id", "disabled": 1},
        "id_actor": {"val": "52", "msg": "主播id", "disabled": 1}
    }
    setHtml_zhm(url, post, show);
}


function user_access() {
    url = '/user/1/access/';
    post = {
        "id_user": "2"
    };
    setHtml(url, post);
}

function access_list() {
    url = '/user/1/access_list/';
    post = {
        "cur_page": "0",
        "pagesize": "5",
    }
    setHtml(url, post);
}

function room_callback() {
    url = '/room/callback/';
    post = {
        "title": "liuhua1516951311W",
    }
    setHtml(url, post);
}
function room_query() {
    url = '/room/query/';
    post = {
        "room_num": "0"
    }
    show = {
        "room_num": {"val": "0", "msg": "房间号", "disabled": 1},
    };
    ret = {
        "roomid": {"val": "", "msg": "房间号"},
        "creator": {"val": "", "msg": "聊天室属主的账号accid"},
        "name": {"val": "", "msg": "聊天室名称"},
        "announcement": {"val": "", "msg": "公告"},
        "broadcasturl": {"val": "", "msg": "直播地址"},
        "ext": {"val": "", "msg": "扩展字段"},
        "queuelevel": {"val": "", "msg": "队列管理权限：0:所有人都有权限变更队列，1:只有主播管理员才能操作变更。默认0"},
        "valid": {"val": "", "msg": "聊天室状态:false:关闭；true:打开"},
        "muted": {"val": "", "msg": "是否被禁言"}
    };

    setHtml_zhm(url, post, show,ret)
}
//修改用户信息
function change_user_info() {
    url = '/user/change_user_info/';
    show = {
        "id_user": {"val": "1", "msg": "用户id", "disabled": 1},
        "nickname": {"val": "小明", "msg": "用户昵称", "disabled": 1},
        "img": {"val": "", "msg": "用户头像地址", "disabled": 1},
        "signature": {"val": "个性签名", "msg": "用户个性签名", "disabled": 1},
        "gender": {"val": "0", "msg": "用户性别", "disabled": 1},
    }
    post = {
        "id_user": "1",
        "nickname": "小明",
        "img": "",
        "signature": "这家伙很懒，什么都没写",
        "gender": "0"

    };
    setHtml_zhm(url, post, show);
}

//主播认证
function actor_authentication() {
    // "id_user","realname","height","tel_number","department","address","idcard","md_A","md_B","md_C","is_actor"
    url = '/user/authentication/';
    show = {
        "id_user":{"val":"1","msg":"用户id", "disabled": 1},
        "realname":{"val":"姓名","msg":"真实姓名", "disabled": 1},
        "height":{"val":"170","msg":"身高", "disabled": 1},
        "tel_number":{"val":"12345345","msg":"电话号码", "disabled": 1},
        "department":{"val":"xx部门","msg":"部门", "disabled": 1},
        "address":{"val":"北京","msg":"地址", "disabled": 1},
        "idcard":{"val":"34242319980314324","msg":"身份证号", "disabled": 1},
        "md_A":{"val":"","msg":"身份证正面", "disabled": 1},
        "md_B":{"val":"","msg":"身份证反面", "disabled": 1},
        "md_C":{"val":"","msg":"手持身份证", "disabled": 1},
        "is_actor":{"val":"0","msg":"是否做过主播", "disabled": 1},
        "platform":{"val":"花椒","msg":"主播平台", "disabled": 1},
    }
    post = {
        "id_user":"1",
        "realname":"大将",
        "height":"175",
        "tel_number":"15701182170",
        "department":"研发部",
        "address":"北京",
        "idcard":"342423199102088590",
        "md_A":"",
        "md_B":"",
        "md_C":"",
        "is_actor":"0",
        "platform":""
    };
    setHtml_zhm(url, post, show);
}

//获取某个位置的视频列表
function addr_video_list() {
    url = '/location/list/';
    show = {
        "province": {"val": "北京", "msg": "省,可为''", "disabled": 1},
        "city": {"val": "北京市", "msg": "市,可为''", "disabled": 1},
        "area": {"val": "海淀区", "msg": "区,可为''", "disabled": 1},
    }
    post = {
        "id_user": "北京市",
        "nickname": "北京市",
        "img": "朝阳区",

    };
    setHtml_zhm(url, post, show);
}

//获取某个位置的视频数
function addr_video_count() {
    url = '/location/counter/';
    show = {
        "type": {"val": "1", "msg": "分组级别", "disabled": 1},
    }
    post = {

    };
    setHtml_zhm(url, post, show);
}
//举报
function user_complain() {
    url = '/api/complain/';
    show = {
        "user_id": {"val": "1", "msg": "用户id", "disabled": 1},
        "anchor_id": {"val": "2", "msg": "主播id", "disabled": 1},
        "vido_id": {"val": "-1", "msg": "视频id", "disabled": 1},
        "complain_type": {"val": "1", "msg": "举报类型", "disabled": 1},
    }
    post = {
        "user_id": "1",
        "anchor_id": "2",
        "vido_id": "-1",
        "complain_type": "1",
    };
    setHtml_zhm(url, post, show);
}
//充值
function user_alipay() {
    url = '/api/alipay/';
    show = {
        "money": {"val": "0.01", "msg": "充值金额", "disabled": 1},
        "user_id": {"val": "1", "msg": "用户ID", "disabled": 1},
    }
    post = {
        "money": "0.01",
        "user_id": "1",
    };
    setHtml_zhm(url, post, show);
}
//提现
function withdraw_cash() {
    url = '/api/withdraw_cash/';
    show = {
        "money": {"val": "10", "msg": "提现金额", "disabled": 1},
        "id_user": {"val": "217", "msg": "用户ID", "disabled": 1},
        "id_account": {"val": "15231417039", "msg": "用户支付宝号", "disabled": 1},
        "real_name": {"val": "冀恩开", "msg": "用户真实姓名", "disabled": 1},
    }
    post = {
        "money": "10",
        "id_user": "217",
        'id_account': '15231417039',
        'real_name': '冀恩开'
        };
    setHtml_zhm(url, post, show);
}
//送礼物扣费
function buy_gift() {
    url = '/api/buy_gift/';
    show = {
        "id_sender": {"val": "1", "msg": "送礼物人", "disabled": 1},
        "lh_coins": {"val": "33", "msg": "礼物金额", "disabled": 1},
        "id_gift": {"val": "1", "msg": "礼物ID", "disabled": 1},
        "gift_num": {"val": "3", "msg": "礼物数量", "disabled": 1},
        "id_receiver": {"val": "217", "msg": "主播ID", "disabled": 1},
    }
    post = {
        "id_sender": "1",
        "lh_coins": "33",
        'id_gift': '1',
        'gift_num': '3',
        'id_receiver': '217'
        };
    setHtml_zhm(url, post, show);

}
function iap_pay() {
    url = '/api/iap_pay/';
    show = {
        'receipt_data': {"val": "xxxx", "msg": "支付收据数据", "disabled": 1},
        "Recharge_amount": {"val": "6", "msg": "充值金额", "disabled": 1},
        "transactionId": {"val": "1000000383725267", "msg": "流水单号", "disabled": 1},
        "user_id": {"val": "217", "msg": "用户ID", "disabled": 1},
        "producrld": {"val": "com.thetech.liuhuazhibo.product30", "msg": "商品名称", "disabled": 1}
    }
    post = {
        'receipt_data': "xxx",
        "productId": "1000000383725267",
        "Recharge_amount":"6",
        "user_id": "217",
        "producrld": "com.thetech.liuhuazhibo.product30",

    };
    setHtml_zhm(url, post, show);
}

function trading() {
        url = '/user/trading/';
        show = {
            'id_user': {"val": "217", "msg": "用户ID", "disabled": 1},
            "cur_page":{"val": "0", "msg": "页码", "disabled": 1},
            "pagesize":{"val": "1", "msg": "条数", "disabled": 1},
            "type": {"val": "0", "msg": "0安卓，1苹果", "disabled": 1}
        }
        post = {
            'id_user': "217",
            "cur_page":"0",
            "pagesize":'1',
            "type":'0'
        };
        setHtml_zhm(url, post, show);
}
function look_video() {
     url = '/user/look_video/';
        show = {
            'room_num': {"val": "22316681", "msg": "look_video", "disabled": 1},

        }
        post = {
            'room_num': '22316681'
        };
        setHtml_zhm(url, post, show);

}
var urls = {
    '**短信验证码': "sendsms",
    '用户:注册': "user_regist",
    '用户:普通登陆': "user_login",
    '用户:第三方用户登陆': "user_login3",
    '用户:修改密码': "user_changepwd",
    '用户:找回密码': "user_forgetregist",
    '用户:获取所有信息': "user_basicInfo",
    '用户:获取统计信息': "user_counter",
    '用户:该用户关注用户清单': "user_payattention_list",
    '用户:关注该用户的粉丝清单': "user_fans_list",
    '主播:视频列表': "user_videolist",
    '用户:获取该用户关注的主播的视频': "user_payattention_actor_video_list",
    '用户:获取该用户的消费日志': "user_log_pay",
    '**  直播室:新建房间': "start",
    '**直播室:关闭房间': "end",
    '直播室:心跳': "beatheart",
    '直播室:用户进入房间': "room_in",
    '直播室:用户退出房间': "room_out",
    '直播室:房间用户列表': "room_users",
    '直播室:获取直播间信息': "room",
    '热门列表': "hotlist",
    '获取最新列表': "lastestlist",
    '获取频道列表': "channellist",
    '获取频道信息': "channel_info",
    '推荐位': "zone",
    '主播热度排行': "rank_actor_hot",
    '主播人气排行': "rank_actor_fans",
    '**直播热度排行': "rank_room",
    '获取热门搜索关键词': "keywords",
    '搜索接口': "mysearch",
    '花费排行': "rank_spend",
    '礼物列表': "gift_list",
    '**图片上传': "uploadimage",
    'page': "page",
    '专题:专题列表': "glist",
    '专题:专题详情列表': "glist_item",
    '用户:关注': "user_payattention",
    '用户:取消关注': "user_no_payattention",
    '用户:访问某人空间': "user_access",
    '用户:获取该用户的最近访客': "access_list",
    '用户:用户点赞': "user_praise",
    '用户:基本信息修改': "change_user_info",
    '直播室:查询直播室': "room_query",
    '直播室:断流测试': "room_callback",
    '**用户:用户点赞': "user_praise",
    '用户:主播认证':"actor_authentication",
    '用户:按地址分组的视频数': "addr_video_count",
    '用户:某个位置的视频列表': "addr_video_list",
    '用户：举报': "user_complain",
    '用户：充值': "user_alipay",
    '用户：提现': "withdraw_cash",
    '用户：送礼物扣费': "buy_gift",
    '用户：苹果支付': 'iap_pay',
    '用户：交易记录':'trading',
    '用户：look_video':'look_video'
    /*
     '用户:充值': "user_counter",
     '用户:地图': "user_counter",
     '**用户:打赏主播': "user_counter",
     '用户:给主播送礼': "user_counter",
     '用户:购买会员': "user_counter",
     '用户:主播认证': "user_counter",
     */


}